#include <stdio.h>

int main(int argc, const char *argv[])
{
	char arr1[32] = "hello world";
	char arr2[32] = "hqyj";
	char* dest = arr1;
	char* src = arr2;

	printf("复制前：\n");
	printf("%s\n", arr1);
	printf("%s\n", arr2);
	while(*src)
	{
		*dest = *src;
		dest++;
		src++;
	}
	*dest = *src;
	printf("复制后：\n");
	printf("%s\n", arr1);
	printf("%s\n", arr2);

	return 0;
}
